package cn.yuanqiao.archive.wenjianzhengli.mapper;


import cn.yuanqiao.archive.appManager.domain.DataScopeBase;
import cn.yuanqiao.common.annotation.DataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WenjianzhengliMapper {

    List<Map<String,Object>> queryListOfWjzl(@Param("tableName") String tableName,
                                             @Param("column") String column, @Param("condition") String condition,
                                             @Param("orderColumn") String orderColumn);
    int cancelAccept(@Param("ids") String ids, @Param("idColumn") String idColumn, @Param("tableName") String tableName);

    List<Map<String,Object>> selectRqById(@Param("ids") String ids, @Param("tableName") String tableName);

    List<Map<String,Object>> selectColumnById(@Param("id") Long id, @Param("tableName") String tableName, @Param("column") String column);

    String selectColumnByCondition(@Param("tableName") String tableName, @Param("column") String column, @Param("queryCondition") String queryCondition);

    int delete(@Param("ids") String ids, @Param("idColumn") String idColumn, @Param("tableName") String tableName);

    int updateColumnById(@Param("idColumn")String idColumn, @Param("id") String id, @Param("updateColumn") String updateColumn, @Param("tableName") String tableName);


    List<Map<String,Object>> selectIdsByOrder(@Param("column")String column, @Param("ids") String ids, @Param("tableName") String tableName, @Param("orderBySql") String orderBySql);
    @DataScope(deptAlias = "d", userAlias = "d",deptColumn = "gdcs_id",userColumn = "create_id")
    List<Map<String, Object>> getlistbytreenode(@Param("dataScopeBase") DataScopeBase dataScopeBase, @Param("fields")String fields, @Param("tablename")String tablename, @Param("state")Integer state, @Param("jsType")Integer jsType, @Param("tiaojian")String tiaojian, @Param("orderstr")String orderstr);
}
